package com.u1s1.service;

import com.u1s1.dao.ActivityMapper;
import com.u1s1.entity.Activity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityService {
    @Autowired
    private ActivityMapper activityMapper;

    public int deleteByPrimaryKey(Integer id){
        return  activityMapper.deleteByPrimaryKey(id);
    };

    public int insert(Activity record){
        return activityMapper.insert(record);
    };

    public int insertSelective(Activity record){
        return activityMapper.insertSelective(record);
    };

    public Activity selectByPrimaryKey(Integer id){
        return activityMapper.selectByPrimaryKey(id);
    };

    public int updateByPrimaryKeySelective(Activity record){
        return activityMapper.updateByPrimaryKeySelective(record);
    };

    public int updateByPrimaryKey(Activity record){
        return activityMapper.updateByPrimaryKey(record);
    };

    public List<Activity> selectSelective(Activity record){return activityMapper.selectSelective(record);}
}
